package servlets;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class Home extends AServlet {
	private static final long serialVersionUID = 5217503359997896181L;

	public void doGet(HttpServletRequest request,HttpServletResponse response)
		throws ServletException, IOException {
		HttpSession session = request.getSession();
		if (session == null || session.getAttribute("LoginStatus") == null || 
				!(Boolean)session.getAttribute("LoginStatus")){
			response.sendRedirect("index.jsp");
			return;
		}
		RequestDispatcher rd = getServletConfig().getServletContext().getRequestDispatcher("/WEB-INF/JSP-Files/home.jsp");
		rd.forward(request, response);
		return;
	}
}
